package com.inray.nbs.dao;

import java.util.List;
import java.util.Map;

public interface BaseDao<T> {
	public int insert(T obj);
	public int insertBySqlId(String sqlId,Object obj);
	public int delete(Class<T> clazz,int id);
	public int deleteBySqlId(String sqlId,Object obj);
	public int update(T obj);
	public int updateBySqlId(String sqlId,Object obj);
	public T selectOneById(Class<T> clazz,int id);
	public T selectOneBySqlId(String sqlId,Object obj);
	public List<T> selectList(Class<T> clazz);
	public List<T> selectListBySqlId(String sqlId,Object obj);
	public Map<String, Object> selectMapBySqlId(String sqlId,Object obj,String mapKey);
	public Object selectOne4ObjBySqlId(String sqlId,Object obj);
	public List<Object> selectList4ObjBySqlId(String sqlId,Object obj);
}
